package com.xj.customtest;

import android.os.Bundle;
import android.view.View;

import com.example.commonlib.base.BaseActivity;
import com.example.commonlib.widget.view.CusRectFTextView;

import butterknife.BindView;
import butterknife.OnClick;

public class CusRectFActivity extends BaseActivity {

    @BindView(R2.id.cusRectFTextViews)
    CusRectFTextView cusRectFTextView;
    private boolean isChange = false;

    @Override
    protected void setContentView() {
        setContentView(R.layout.activity_cusrect_layout);
    }

    @Override
    protected void init(Bundle savedInstanceState) {

    }

    @OnClick({R2.id.cusRectFTextViews})
    public void onClick(View view){
        if(view.getId() == R.id.cusRectFTextViews){
            if (isChange) {
                cusRectFTextView.change(true);
                isChange = false;
            } else {
                cusRectFTextView.change(false);
                isChange = true;
            }
        }
    }
}
